<?php
/**
 * 定义抽象同事类，咱们的抽象同事类就是一个人。。。。。。，他buy买东西，他getThings卖东西。
 * Created by PhpStorm.
 * User: liangtiehui
 * Date: 2016/5/4
 * Time: 17:50
 */

namespace Meidator;


abstract class Human
{
    protected $mediator = null;
    abstract public function getThings($number);
    abstract public function buy($name, $number);

    public function setMediator($mediator)
    {
        $this->mediator = $mediator;
    }

    public function getMediator()
    {
        return $this->mediator;
    }
}